<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>


<style>
<!--
	
		.data_body_modal_split_txt{
			width:50%;
			font-size:22px;
			color:#35a7ec; 
		}
		.small_img{
			width:30px;
			height:30px;
		}
		
		.data_ul .li_txt{
			/* font-size:22px; */
			padding-left:10px;
		}
		.data_ul li{
			min-height:36px;
			margin:12px 0px;
		}
		.data_ul a{
			color:#000;
		}
		
		.data_details .title{ 
			font-size:24px;
			margin-top:20px;
			text-align:center;
		}
		.data_details .time{
			text-align:center;
			font-size:16px;
		}
		.data_details p{
			text-indent:2em;
		}
		
-->
</style>

<script type="text/javascript" src="<%=path %>/js/resources/moment.js"></script>
<script type="text/javascript" src="<%=path %>/js/resources/moment-zh-cn.js"></script>
<script type="text/javascript">
<!--
//-->

	var path='<%=basePath%>';

	$(function(){
		initPagesWithEle($("#fontadpager"),1, 100);
		
		$("#fontadpager").bootstrapPaginator("setOptions",{
			/* pageUrl: function(type, page, current){                  
				initLogTable(path,page);
			}, */
			onPageClicked: function(e,originalEvent,type,page){
				initAdvertiseList(page);
		    }
		});
	});
	 
	
	function initAdvertiseList(page){
		$("#loading").show();
		$(".advertise_list").empty();
		$(".details").empty(); 
		$(".details").hide(); 
		$.post(path+"advertiseAction_list.action",{
			 rows:3,
			 page:page
		 },function(res){
			 res=eval('('+res+')');
			 if(res.rescode=='100'){
				 $("#loading").hide();
		    	for(var i=0;i<res.data.length;i++){
		    		var e=res.data[i];
		    		var $e=$("<div class='follow_top30 data_modal'><label class='data_body_modal_split_txt'><i>"+e.name+"</i></label><div style='border:1px dashed #ddf;margin:0 auto;'></div></div><div style='margin-top:20px;margin-left:30px;'><div><label>月薪：</label><span>"+e.money+"</span></div> <div><label>福利：</label><span>"+e.ext+"</span></div><div><label>招聘人数：</label><span>"+e.adCount+"</span></div><div><label>工作地点：</label><span >"+e.address+"</span></div><div><label>出差：</label><span>"+e.businessTrip+"</span></div><div><label>发布日期：</label><span>"+e.adDate+"</span></div><div><label>截止日期：</label><span >"+e.enDate+"</span></div><div><label>岗位要求：</label><span >"+e.askKills+"</span></div><div><label>岗位职责：</label><span >"+e.work+"</span></div></div>");
					 $(".advertise_list").append($e);
		    	}	
		    	initPagesWithEle($("#fontadpager"),res.pagebean.curPage,res.pagebean.totalPages);
			 }
		 });
	}

</script>

<div class="data_body_div_left ">

			<div class="follow_top30 data_modal">
    			<label class="data_body_modal_split_txt"><i>招聘模块</i></label>
    			<div style="border:1px dashed #ddf;margin:0 auto;"></div>
    		</div>  
    		
	<div class="data_list "> 
		
			<div class="advertise_list">	
			</div>
			<ul id='fontadpager' style="margin-left:30%;"></ul> 
	</div>
    		
</div>
    		<jsp:include page="common_right.jsp"></jsp:include>
    		
<jsp:include page="pager.jsp"></jsp:include>